import request from '@/utils/request'

// 查询产品销售列表
export function listAgriculture(query) {
  return request({
    url: '/agriculture/agriculture/list',
    method: 'get',
    params: query
  })
}

// 查询产品销售详细
export function getAgriculture(agricultureId) {
  return request({
    url: '/agriculture/agriculture/' + agricultureId,
    method: 'get'
  })
}

// 新增产品销售
export function addAgriculture(data) {
  return request({
    url: '/agriculture/agriculture',
    method: 'post',
    data: data
  })
}

// 修改产品销售
export function updateAgriculture(data) {
  return request({
    url: '/agriculture/agriculture',
    method: 'put',
    data: data
  })
}

// 删除产品销售
export function delAgriculture(agricultureId) {
  return request({
    url: '/agriculture/agriculture/' + agricultureId,
    method: 'delete'
  })
}
